﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using DataAnalyseTool.Repository;
using DataAnalyseTool.Model;


namespace DataAnalyseTool.BusinessTier.Bll
{
    public class ShopBLL
    {
       ShopDal shopDal = new ShopDal();
      //ShopDAL shopDal = new ShopDAL();
      //ShopDal
        public int AddShop(Shops shops)
        {
            return shopDal.AddShop(shops);
        }
        public int DeleteShopByID(int Shopid)
        {
            return shopDal.DeleteShopByID(Shopid);
        }
        public int UpdateShop(Shops shops)
        {
            return shopDal.UpdateShop(shops);
        }
        public DataTable GetAllShops()
        {
            return shopDal.GetAllShops();
        }
        public bool isExistShopName(string sName)
        {
            return shopDal.isExistShopName(sName);
        }
        public int getShopId(string sName)
        {
            return shopDal.GetShopId(sName);
        }

    }
}
